/*
 * Copyright (c) 2024 iSOFT INFRASTRUCTURE SOFTWARE CO., LTD.
 * easyAda is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */

#ifndef ASM_GENERIC_MMAN_COMMON_H
#define ASM_GENERIC_MMAN_COMMON_H

#define PROT_NONE  0x0U
#define PROT_READ  0x1U
#define PROT_WRITE 0x2U
#define PROT_EXEC  0x4U

#define MAP_TYPE 0x0f

#define MAP_SHARED  0x10U
#define MAP_PRIVATE 0x20U
#define MAP_FIXED   0x40U

#define MAP_GLOBAL 0x80U

#define MAP_FAILED (0)

#endif